package com.mybatisflex.demo.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 订单。
 *
 * @author 王帅
 * @since 2023-07-25
 */
@Data
@Table("tb_order")
public class Order {

    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    @Column(value = "order_id")
    private Long id;
    private LocalDateTime createTime;

}